$(function () {
  let layer = layui.layer
// 退出
  $('#quit').on('click', function () {
    localStorage.removeItem('mytoken')
    location.href = './login.html'
  })
  
  
  function getToken () {
    console.log(localStorage.getItem('mytoken'));
    let mytoken = localStorage.getItem('mytoken')
    if (!mytoken) {
      location.href = './login.html'
    }
  }
  getToken()
})